home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Amiga Plus Special 19
/
AMIGAplus Sonderheft 19 (1999)(ICP)(DE)[!].iso
/
Demoversionen
/
Anwendungen
/
Net_Connect
/
NC_2.1
/
AmIRC
/
Rexx
/
RAW.amirx
< prev
next >
Wrap
Text File
|
1999-03-08
|
1KB
|
43 lines
/* RAW.amirx by Ariel Magnum
** Demonstrates how to send IRC commands with RAW
** To learn more,leave your RAW Log window open
*/
Options Results /* Enable rc/result return codes */
signal on syntax /* Enables syntax checking */
prefix='RAWDemo'/* Prefix for echos */
colour=3 /* Colour fo echos */
/* Begin */
ctcpmarker='01'x
"GETMYNICK"
mynick=result
"GETCHANNEL"
channel=result
"RAW PRIVMSG" mynick ":a Private message"
"RAW NOTICE" mynick ":a Notice"
"RAW PRIVMSG" mynick ":"ctcpmarker"VERSION"ctcpmarker
"RAW MODE" channel "+v" mynick /* Voice */
cecho("Finished demo")
/* End */
exit
/* Shared Functions */
bold: /* This function bolds text*/
return '02'x||arg(1)||'02'x
underline: /* This function underlines text*/
return '1F'x||arg(1)||'1F'x
inverse: /* This function inverses text*/
return '16'x||arg(1)||'16'x
cecho: /* This function echo's text to listview*/
"ECHO P="d2c(27)"b«"prefix"» C="colour arg(1)
return 0
syntax: /* This function returns where you made a syntax error */
prefix="Syntax"
cecho("Command on line" SIGL "returned" RC ":" errortext(rc) sourceline(SIGL))
exit